package com.shangxia.dreaming.business;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;

/**
 * @ProjectName: dreaming
 * @ClassName: Demo
 * @Time: 2020/10/10
 * @Author: zhouy
 * @Description:
 * @Experience:
 */

@Slf4j
public class Demo {

    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList();
        list.add("1");
        list.add("2");
        list.add("3");
        list.add("4");
        ArrayList<String> list2 = new ArrayList();
        list2.add("1");
        list2.add("2");
        list2.add("5");
        boolean b = list.containsAll(list2);
        System.out.println(b);
    }
}
